#/*************************************************************************
#    > File Name: examples/example_test.py
#    > Author: Yan Wang
#    > Mail: wangyan@imnu.edu.cn
#    > Created Time: 2022年07月03日 星期日 20时26分43秒
# ************************************************************************/
#!/usr/bin/env python
# -*- coding: utf-8 -*-

origin_path_list={"process": Template("PROCESS                   : 10_bp3_4b0j_{$fnum}"),
	              "out"    : Template("OUTPUT_FOLDER             : \"events/Event_scan_{$nonum}\""),
			      "tmp"    : Template("RECORD_FILE               : \"tmp/tmp_h_w4b_{$fnum}.dat\""),
			      "file"   : Template("INPUT_FILE                : \"file_{$age}.dat\"")}
out_dict={}

for key in origin_path_list:
	out_dict[key]=origin_path_list[key].safe_substitute({"fnum":"test"})
out_dict=toolz.valmap(Template,out_dict)
print("1",out_dict)
for key in out_dict:
	out_dict[key]=out_dict[key].safe_substitute({"nonum":"test_1"})
print("2",out_dict)

